package com.hq.modules.sys.dao;

import com.hq.modules.sys.entity.People;
import com.hq.modules.sys.entity.StatisticsResult;import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface PeopleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(People record);

    int insertSelective(People record);

    People selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(People record);

    int updateByPrimaryKey(People record);

    List<People> selectAllByBuildingId(@Param("buildingId") Integer buildingId);

    List<People> selectByAll(People people);

    List<StatisticsResult> personnelStatistics(Integer id);

    List<StatisticsResult> buildingInfoStatistics(Integer id);
}